package irnode;

import util.NameService;

public class IRTempList {
	
	private static int temp_num;
	private static int label_num;
	
	public static void init(){
		temp_num = 0;
		label_num = 0;
	}
	
	public static int next_temp_num(){
		return temp_num++;
	}
	
	public static String next_temp_name(){
		return NameService.tempPre + next_temp_num();
	}
	
	public static int next_label_num(){
		return label_num++;
	}
	
	public static String next_label_name(){
		return NameService.labelPre + next_label_num();
	}
}
